package com.shuma.shopmanage.model.user.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("role")
public class Role implements Serializable {
    /**
     * 编号
     */
    @ApiModelProperty("角色编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 名称
     */
    @ApiModelProperty("角色名")
    @TableField("name")
    private String name;

    /**
     * 描述
     */
    @ApiModelProperty("角色描述")
    @TableField("description")
    private String description;
}
